Skip to content

Fix push menu plugin to allow collapsed sidebar at initialization - #6076

Merged
puikinsh merged 1 commit into
ColorlibHQ:masterfrom
dfsmania:fix_sidebar_collapsed_on_init
Jul 19, 2026
Merged

Fix push menu plugin to allow collapsed sidebar at initialization#6076
puikinsh merged 1 commit into
ColorlibHQ:masterfrom
dfsmania:fix_sidebar_collapsed_on_init

Conversation

@dfsmania

Copy link
Copy Markdown
Contributor

This pull request updates the sidebar initialization logic in push-menu.ts to better handle cases where the sidebar is explicitly set as collapsed. Now, the responsive logic for setting the sidebar state only runs if the sidebar is not already collapsed, preventing unwanted overrides. This way, a user can use the sidebar-collapse class on the body tag to get a collapsed sidebar on page initialization.

Sidebar state initialization improvements:

  • Updated the sidebar initialization in the PushMenu class so that responsive logic is only applied if the sidebar is not already collapsed, ensuring explicit collapsed states are respected.

@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for adminlte-v4 ready!

Name Link
🔨 Latest commit 2a2b39d
🔍 Latest deploy log https://app.netlify.com/projects/adminlte-v4/deploys/6a5be900bc1dbd00088006af
😎 Deploy Preview https://deploy-preview-6076--adminlte-v4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@puikinsh
puikinsh merged commit e8ed32e into ColorlibHQ:master Jul 19, 2026
10 of 11 checks passed
@dfsmania
dfsmania deleted the fix_sidebar_collapsed_on_init branch July 19, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant